#ifndef CTHREAD_H
#define CTHREAD_H

#include <windows.h>

class cThread
{
    public:
        cThread(bool autoStart=true);
        virtual ~cThread();

    protected:
        void        Start();
        virtual void doJob()=0;
    private:
        static DWORD WINAPI Start(void * params);
        HANDLE HandleThread;
};

#endif // CTHREAD_H
